#define _CRT_SECURE_NO_WARNINGS 1
#include "stack.h"

void TestStack()
{
	Stack s;
	Stack* ps = &s;
	StackInit(ps);
	

	StackPush(ps, 1);
	StackPush(ps, 2);
	StackPush(ps, 3);
	StackPush(ps, 4);
	StackPush(ps, 5);

	StackSize(ps);

	printf("%d", StackTop(ps));
	StackPop(ps);
	printf("%d", StackTop(ps));
	StackPop(ps);
	printf("%d", StackTop(ps));
	StackPop(ps);
	printf("%d", StackTop(ps));
	StackPop(ps);
	printf("%d", StackTop(ps));
	StackPop(ps);
	printf("%d", StackTop(ps));
	StackPop(ps);

	StackDestroy(ps);
}

int main()
{
	TestStack();
	return 0;
}